<?php session_start(); ?>

<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<?php

include "Datasource.php";
include "WorkDone.php";
include "WorkDoneDao.php";
$workDone = new WorkDone();
$workDoneDao = new WorkDoneDao();

$workDoneID = $_GET['wrkid'];

$conn = new Datasource("localhost", "theanykey", "root", "");

$workDone = $workDoneDao->getObject($conn, $workDoneID);

$workDone->setNotes($_POST['txtAreaNotes']);
$workDone->setHrsWorkDone($_POST['txtHours']);

$workDoneDao->save($conn, $workDone);


?>


<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <body onload="closeRefresh();">

        <script type="text/javascript">
        function closeRefresh()
        {
            w = window.opener;
            window.opener.location.href = window.opener.location.href;
            window.close();

         }

        </script>

    </body>
</html>
